import request from '@/utils/request.js'
const PATH = '/admin/testExam'

// 分页查询测试试卷
export const getTestExamList = ({
  page,
  pageSize,
  examName,
  testCategoryId
}) => {
  return request.get(PATH + '/page', {
    params: {
      page,
      pageSize,
      examName,
      testCategoryId
    }
  })
}

// 添加测试试卷
export const insertTestExam = (data) => {
  return request.post(PATH + '/insert', data)
}

// 批量删除测试试卷
export const batchDeleteTestExam = (ids) => {
  return request.delete(PATH + '/batchDelete', {
    params: {
      ids: ids.join(',')
    }
  })
}
